import os
import sys

#// path =================================================
ROOT        = os.getcwd()
SRC_DIR     = ROOT + '/src'
LIBPATH     = ROOT + '/lib'
OUT_DIR     = ROOT + '/build'
BIN_DIR     = ROOT + '/build/bin'
RELEASE_DIR = ROOT + '/build/release'
PUB_DIR     = ROOT + '/build/public'
#// out file 
ELF_FILE    = BIN_DIR + '/app.elf'
ELF_FILE1    = BIN_DIR + '/app_strip.elf'



#// gcc ==================================================
CC          =  'arm-linux-gnueabihf-gcc'
CXX         =  'arm-linux-gnueabihf-g++'
AS          =  'arm-linux-gnueabihf-gcc'
AR          =  'arm-linux-gnueabihf-ar'
LINK        =  'arm-linux-gnueabihf-gcc'
OBJDUMP     =  'arm-linux-gnueabihf-objdump'
OBJCPY      =  'arm-linux-gnueabihf-objcopy'
STRIP       =  'arm-linux-gnueabihf-strip'

#-- only gcc used
CFLAGS      = ' -std=gnu11 '

#-- only g++ used
CXXFLAGS    = '-std=gnu++11 '

#-- gcc && g++ used
CCFLAGS     = ' -O2 '
CCFLAGS    += ' -D_GNU_SOURCE '

ASFLAGS     = ' '
ARFLAGS     = ' -rsv '

LDFLAGS     = ' '
#LDFLAGS    += ' -static '


#// shared library =======================================
#-- only gcc used
LIBS  = [           'm', 'rt', 'pthread']

#-- only g++ used
LIBS  = [ 'stdc++', 'm', 'rt', 'pthread']